//引入样式
require("../../assets/css/common.css");
require("./adverse.css");
const dom = require("../../utils/dom.js");

//实现倒计时
document.addEventListener("DOMContentLoaded", function () {
	let num = 5;
	setInterval(function () {
		num--;
		dom.get("#secs").textContent = num + `s`;
		if (num === 0) {
			location.href = "login.html";
		}
	}, 1000);
});
